package lxt.service;

import java.util.List;

import lxt.entity.CostAccident;

public interface CostAccidentService {
	/**
	 * 加载交通事故信息 
	 * @return
	 */
	public List<CostAccident> loadCostAccident(String truckId,String driverId,int offset, int length)throws Exception;
	/**
	 * 添加交通事故
	 */
	public boolean addCostAccident(CostAccident costAccident)throws Exception;
	/**
	 * 根据id查找交通事故
	 */
	public CostAccident loadCostAccidentById(String id)throws Exception;
	/**
	 * 修改交通事故
	 */
	public boolean updateCostAccident(CostAccident costAccident)throws Exception;
	/**
	 * 删除交通事故
	 */
	public boolean deleteCostAccident(String id)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllCostAccidentCount(String truckId,String driverId)throws Exception;
}
